package audio_testing;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class audioTest {
	public static void main(String[] args) throws IOException {
       TranslateByteToDouble a=JudgeFormat.JudgeFormatRight(new File("data/Ashes Remain - On My Own.wav"));
        PrintWriter out = new PrintWriter(new FileWriter("data/Ashes Remain - On My Own.csv"));
        for (int i = 0; i < a.getNum(); ++i) {
            out.printf("%.2f,\n", a.ByteToDouble(i));
        }
        out.flush();
        out.close();
    }
}
